<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:acegi="http://sourceforge.net/projects/jsf-comp/acegijsf">

<f:view>
	<f:loadBundle var="text" basename="#{basePage.bundleName}" />
	<head>
	<title>#{text['mainMenu.title']}</title>
	<meta name="menu" content="MainMenu" />
	<meta name="heading" content="Clearing rules" />
	</head>

	<div class="separator"></div>

	<h:form id="showMyClearingRuleList">

		<t:dataTable value="#{clearingRuleList.clearingRules}" var="rule"
			style="margin-top: 10px" styleClass="scrollerTable table"
			headerClass="standardTable_Header"
			rowClasses="standardTable_Row1,standardTable_Row2"
			columnClasses="standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_ColumnCentered">
			<t:column width="10%">
				<f:facet name="header">
					<t:commandSortHeader columnName="Description@" arrow="true">
						<h:outputText value="Description" />
						<!-- #{text['user.username']} -->
					</t:commandSortHeader>
				</f:facet>
				<h:outputText value="#{rule.description}" />
			</t:column>
			<t:column width="10%">
				<f:facet name="header">
					<t:commandSortHeader columnName="TxClearing@" arrow="true">
						<h:outputText value="TxClearing" />
					</t:commandSortHeader>
				</f:facet>
				<h:outputText value="#{rule.txClearing}" />
			</t:column>
		</t:dataTable>


		<script type="text/javascript">highlightTableRows("showMyClearingRuleList:clearingRules");
		 // doesn't currently work to allow clicking row
		</script>

	</h:form>

</f:view>
</html>
